home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 3 / BBS in a box - Trilogy III.iso / Files / MacTechNotes / Platforms & Tools / Stand-Alone Code Folder / CTestƒ / CTest.c next >
Encoding:
C/C++ Source or Header  |  1990-07-15  |  732 b   |  32 lines  |  [TEXT/MPS ]

  1.  
  2. #include <Types.h>
  3. #include <QuickDraw.h>
  4. #include <Fonts.h>
  5. #include <Windows.h>
  6. #include <OSUtils.h>
  7. #include <SAGlobals.h>
  8.  
  9.  
  10. void UseQuickDraw (void) {
  11.     A5RefType A5Ref;
  12.     long oldA5;
  13.     Rect theRect;
  14.     WindowPtr theWind;
  15.     
  16.     if (!Button()) {
  17.         oldA5 = OpenA5World(&A5Ref);
  18.             InitGraf(&qd.thePort);
  19.             InitFonts();
  20.             InitWindows();
  21.             InitCursor();
  22.             theRect.top = theRect.left = 0;
  23.             theRect.right = 200;
  24.             theRect.bottom = 120;
  25.             OffsetRect(&theRect,(qd.screenBits.bounds.right-theRect.right)/2,(qd.screenBits.bounds.bottom-theRect.bottom)/2);
  26.             theWind = NewWindow((Ptr) 0, &theRect, "\pBooting…", true, noGrowDocProc, (WindowPtr) -1, false, 0);
  27.             SysBeep(1);
  28.             DisposeWindow(theWind);
  29.         CloseA5World(oldA5, A5Ref);
  30.     }
  31. }
  32.